package com.qf.news.domain;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName luoyanguser
 */
@Data
public class Luoyanguser implements Serializable {
    /**
     * 
     */
    private String username;

    /**
     * 
     */
    private String password;

    /**
     * 
     */
    private String city;

    /**
     * 
     */
    private String somethings;

    /**
     * 
     */
    private String phone;

    /**
     * 
     */
    private String callme;

    /**
     * 
     */
    private String adress;

    /**
     * 
     */
    private Date time;

    /**
     * 
     */
    private String jobs;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Luoyanguser other = (Luoyanguser) that;
        return (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getSomethings() == null ? other.getSomethings() == null : this.getSomethings().equals(other.getSomethings()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getCallme() == null ? other.getCallme() == null : this.getCallme().equals(other.getCallme()))
            && (this.getAdress() == null ? other.getAdress() == null : this.getAdress().equals(other.getAdress()))
            && (this.getTime() == null ? other.getTime() == null : this.getTime().equals(other.getTime()))
            && (this.getJobs() == null ? other.getJobs() == null : this.getJobs().equals(other.getJobs()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getSomethings() == null) ? 0 : getSomethings().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getCallme() == null) ? 0 : getCallme().hashCode());
        result = prime * result + ((getAdress() == null) ? 0 : getAdress().hashCode());
        result = prime * result + ((getTime() == null) ? 0 : getTime().hashCode());
        result = prime * result + ((getJobs() == null) ? 0 : getJobs().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", username=").append(username);
        sb.append(", password=").append(password);
        sb.append(", city=").append(city);
        sb.append(", somethings=").append(somethings);
        sb.append(", phone=").append(phone);
        sb.append(", callme=").append(callme);
        sb.append(", adress=").append(adress);
        sb.append(", time=").append(time);
        sb.append(", jobs=").append(jobs);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}